package org.dromara.assets.domain.bo;

import org.dromara.assets.domain.AssetsTokenpair;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 交易对业务对象 assets_tokenpair
 *
 * @author Lion Li
 * @date 2025-06-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AssetsTokenpair.class, reverseConvertGenerate = false)
public class AssetsTokenpairBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 1:Binance;2:Huobi;3:ZB;4:BigOne
     */
    @NotNull(message = "1:Binance;2:Huobi;3:ZB;4:BigOne不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long platform;

    /**
     * 币种
     */
    @NotBlank(message = "币种不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tokenPair;

    /**
     * 状态,1:已启用,2:未启用
     */
    @NotNull(message = "状态,1:已启用,2:未启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 备注
     */
    private String comment;


}
